<?php
	if (!$listid)
	{
		$to = 'index.php?cmd=login';
		header('Location: '. $to);
	}
?>

<div style="padding-top:10px; padding-left:20px;">
	<form action="<?php print "../../sms2all.php?listid=$listid&phone=$fromphone" ?>" method="post">
		<fieldset>
			<legend>SMS til alle </legend>
			<br>
			<input type="hidden" name="listid" value="<?php print $listid; ?>" readonly="readonly"/><br>
			<label for="name">Auto tekst:</label>
			<input type="text" name="name" value="Hej [Navn]" readonly="readonly"/><br>
			<label for="message">Besked:</label>
			<textarea name="message" rows="7"></textarea><br>
			<br>
			<label for="ok">.</label>
			<input type="submit" name="ok" value="Send sms" onclick="this.value='Klik ikke igen men vent tålmodigt :)';"/>
		</fieldset>
	</form>
</div>